package com.ybu.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UserInfoDTO {
    @NotBlank(message = "电话号码不能为空")
    private String phone;
    @NotBlank(message = "电子邮箱不能为空")
    @Length(max = 20,min =8,message = "电子邮箱长度应该为8-20位")
    private String email;

    private Integer gender;
}
